﻿namespace ClassyBlog.ExtensionMethods
{
    using System;
    using System.Diagnostics;

    using Infrastructure;

    public static class DateTimExtensions
    {
        [DebuggerStepThrough]
        public static string ShortFormat(this DateTime instance)
        {
            var result = instance.ToString("yy-MM-dd", Culture.Current);

            return result;
        }

        [DebuggerStepThrough]
        public static string LongFormat(this DateTime instance)
        {
            var result = instance.ToString("MMMM d, yyyy", Culture.Current);

            return result;
        }
    }
}